﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Threading;

namespace TestCommonWindow.Common
{
    //全局信息
    public static class GlobalInfo
    {
        //配置信息
        public static ConfigInfo AppConfigs = null;

        public static object objLock = new object();//资源锁
        public static bool StartListeningCommunitaionToken = false;//开始监听通信标记
        public static bool StartTestingToken = false;//开始测试标记
        public static bool IsCommunication= false;//通信的状态
        public static int PassCount=0, FailCount = 0; //PASS的数量 Fail的数量
        public static ManualResetEvent manualResetEvent_Connect = new ManualResetEvent(true);//连接的信号量
        public static ManualResetEvent manualResetEvent_Testing = new ManualResetEvent(true);//测试的信号量

        public static readonly string reprotSaveDirectory =Path.Combine( Environment.CurrentDirectory,"TestReport"); //报告的保存目录
    }
}
